]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
build: Automatically bump mutter API version each cycle
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 23 Jul 2019 20:34:58 +0000 (22:34 +0200)
committerFlorian Müllner <florian.muellner@gmail.com>
Tue, 23 Jul 2019 21:57:21 +0000 (21:57 +0000)
Mutter will now bump the API version automatically at the
beginning of a new development cycle; do the same here.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/641

meson.build

index 42c7f02d92addef6cf01bdb7a5a0e8375db7eb02..307cd6be6a0655f7477283e980b4ba6ae7280588 100644 (file)
@@ -4,9 +4,14 @@ project('gnome-shell', 'c',
   license: 'GPLv2+'
 )
 
+split_version = meson.project_version().split('.')
+
 # We depend on a specific version of the libmutter API. The mutter variants of
 # the Cogl and Clutter libraries also use this API version.
-mutter_api_version = '4'
+# The API version is increased automatically each development cycle,
+# starting with 0 in 3.23.x
+api_version = (split_version[1].to_int() - 23) / 2
+mutter_api_version = '@0@'.format(api_version)
 
 clutter_pc = 'mutter-clutter-' + mutter_api_version
 cogl_pc = 'mutter-cogl-' + mutter_api_version